package com.wss.amd.main;

import com.wss.amd.ResourceTable;
import com.wss.common.base.BaseFullScreenAbility;
import com.wss.common.base.mvp.BasePresenter;
import com.wss.common.manage.AbilityToAbility;
import com.wss.module.main.ui.main.MainAbility;
import ohos.aafwk.content.Intent;
import ohos.eventhandler.EventHandler;
import ohos.eventhandler.EventRunner;

public class LoadingAbility extends BaseFullScreenAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        setUIContent(ResourceTable.Layout_ability_loading);
        new EventHandler(EventRunner
                .getMainEventRunner())
                .postTask(new Runnable() {
            @Override
            public void run() {
                AbilityToAbility.toAbility(LoadingAbility.this,
                        MainAbility.class);
                terminateAbility();
            }
        }, 800);
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }
}
